<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>申请报单中心</title>
    <link rel="shortcut icon" href="favicon.ico">
    <link href="__PUBLIC__/Theme1/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="__PUBLIC__/Theme1/css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
    <link href="__PUBLIC__/Theme1/css/plugins/iCheck/custom.css" rel="stylesheet">
    <link href="__PUBLIC__/Theme1/css/animate.min.css" rel="stylesheet">
    
    <link href="__PUBLIC__/Theme1/static/plupload/upfiless.css" rel="stylesheet" type="text/css"/>
    <link href="__PUBLIC__/Theme1/lib/webuploader/0.1.5/webuploader.css" rel="stylesheet" type="text/css"/>
    <link href="__PUBLIC__/Theme1/css/plugins/awesome-bootstrap-checkbox/awesome-bootstrap-checkbox.css"
          rel="stylesheet">
    <link rel="stylesheet" href="__PUBLIC__/Theme1/css/goods_buy_AdminLTE.min.css">
    <style>
        body {
            font-family: "微软雅黑", "宋体", "新宋体", Verdana, Geneva, sans-serif;
        }
    </style>
</head>
<body class="gray-bg">
<section class="content-header" style="padding-left: 50px">
    <h1>
        申请报单中心
        <small>apply baodan</small>
    </h1>
</section>
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="callout callout-info" style="margin-left: 30px;margin-bottom: 1px"><p>用户申请报单中心以后,激活会员的同时可以额外获得服务提成哦</p></div>
    <div class="row">
        <div class="col-sm-12" style="margin-left: 30px">
            <div class="ibox float-e-margins">
                <div class="ibox-content">
                    <if condition="$is_apply_baodan neq 1">
                    <form method="post" action="" class="form-horizontal" id="form-admin-add"
                          enctype="multipart/form-data">

                        <div class="form-group" style="margin-top:5px">
                            <label class="col-sm-1 control-label">会员编号</label>
                            <div class="col-sm-3">
                                <input type="text" value="<{$userarr.loginname}>" name="loginname"
                                       id="loginname" readonly="readonly" class="form-control"
                                       style="margin-top: -10px"/>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-1 control-label">当前已直推人数</label>
                            <div class="col-sm-3">
                                <input type="text" value="<{$userarr.invite_count}>" name="invite_count" id="invite_count"
                                       readonly="readonly" class="form-control" style="margin-top: -10px"/>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-1 control-label">报单申请说明</label>
                            <div class="col-sm-3">

                                <input type="text" name="apply_desc" placeholder="   此处可填写申请备注,不填留空即可"
                                        class="form-control" style="margin-top: -10px"/>
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <div class="col-sm-4 col-sm-offset-2">
                                <button class="btn btn-primary" type="submit">申请报单</button>
                            </div>
                        </div>
                    </form>

                        <else />
                        <form method="post" action="" class="form-horizontal" id="form-admin-add"
                              enctype="multipart/form-data">

                            <div class="form-group" style="margin-top:5px">
                                <label class="col-sm-1 control-label">会员编号</label>
                                <div class="col-sm-3">
                                    <input type="text" value="<{$userarr.loginname}>" name="loginname"
                                           id="loginname" readonly="readonly" class="form-control"
                                           style="margin-top: -10px"/>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label">申请报单时直推数</label>
                                <div class="col-sm-3">
                                    <input type="text" value="<{$baodan_info.current_invite_count}>" name="current_invite_count" id="current_invite_count"
                                           readonly="readonly" class="form-control" style="margin-top: -10px"/>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label">当前已直推人数</label>
                                <div class="col-sm-3">
                                    <input type="text" value="<{$userarr.invite_count}>" name="invite_count" id="invite_count"
                                           readonly="readonly" class="form-control" style="margin-top: -10px"/>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label">当前审核状态</label>
                                <div class="col-sm-3">

                                    <input type="text" name="apply_desc" style="color: red"
                                    <if condition="$baodan_info.states eq 0">
                                        value="等待后台审核"
                                        <elseif condition="$baodan_info.states eq -1" />
                                        value="审核未通过"
                                    </if>
                                    class="form-control" style="margin-top: -10px" readonly="readonly"/>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label">报单申请时间</label>
                                <div class="col-sm-3">

                                    <input type="text"  value="<{$baodan_info.apply_time|date='Y-m-d H:i',###}>"
                                           class="form-control" style="margin-top: -10px" readonly="readonly"/>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label">报单申请说明</label>
                                <div class="col-sm-3">

                                    <input type="text" name="apply_desc" value="<{$baodan_info.apply_desc}>"
                                           class="form-control" style="margin-top: -10px"/>
                                </div>
                            </div>

                            <div class="hr-line-dashed"></div>
                            <if condition="$baodan_info.states eq -1">
                            <div class="form-group">
                                <div class="col-sm-4 col-sm-offset-2">
                                    <button class="btn btn-primary" type="submit">重新提交申请</button>
                                </div>
                            </div>
                            </if>
                        </form>
                    </if>
                </div>
            </div>
        </div>
    </div>
</div>


</body>

</html>
